package cn.iocoder.mall.order.api.bo;

import cn.iocoder.common.utils.common.system.util.Long2StringSerializer;
import cn.iocoder.common.utils.common.system.util.String2LongDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 订单创建 BO
 *
 * @author Sin
 * @time 2019-03-16 14:38
 */
@Data
@Accessors(chain = true)
public class OrderCreateBO implements Serializable {

    /**
     * 编号
     */
    @JsonDeserialize(using = String2LongDeserialize.class)
    @JsonSerialize(using = Long2StringSerializer.class)
    private Long id;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 订单金额
     */
    private Integer payAmount;
}
